package com.personal.enums;

/**
 * @author coderFu
 * @create 2021/10/1
 *通用返回枚举
 */
public enum ResourcesEnum implements Code {

    /** 资源文章 */
    RESOURCES_ID_IS_ERROR(2050, "资源id不合法"),
    RESOURCES_DETAILS_ERROR(2051, "资源文章详情查询异常"),
    RESOURCES_GET_IS_NULL(2052,"后端异常"),
    RESOURCES_PARAM_ERROR(2053,"资源参数错误"),
    RESOURCES_ADD_ERROR(2054,"插入失败")

    ;

    private int code;
    private String msg;
    ResourcesEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String msg() {
        return this.msg;
    }
}
